import request from '@/config/axios'


// 查询用户信息列表
export const getUsersPage = async (params) => {
    return await request.get({ url: `/system/users/page`, params })
}

// 查询用户信息详情
export const getUsers = async (id: number) => {
    return await request.get({ url: `/system/users/get?id=` + id })
}

// 新增用户信息
export const createUsers = async (data: UsersVO) => {
    return await request.post({ url: `/system/users/create`, data })
}

// 修改用户信息
export const updateUsers = async (data: UsersVO) => {
    return await request.put({ url: `/system/users/update`, data })
}

// 删除用户信息

export const deleteUsers = async (id: number) => {
    return await request.delete({ url: `/system/users/delete?id=` + id })
}

// 导出用户信息 Excel
export const exportUsers = async (params) => {
    return await request.download({ url: `/system/users/export-excel`, params })
}
